/**
 * Created with IntelliJ IDEA
 * Description:匿名内部类创建Thread子类对象
 * User:恋恋
 * Date:2023-09-03
 * Time:9:56
 */
public class Test3 {
    public static void main(String[] args) {
        Thread t = new Thread(){
            @Override
            public void run() {
                System.out.println("使用匿名类创建Thread子类对象");
            }
        };
        t.start();
    }
}
